package com.bjtct.plugin.autogen.wizards.consts;

public class Consts {
	public static String[] JAVA_TYPE = new String[] { "int", "long","float","double","boolean","String", "date", "datetime" };
	public static String[] YES_NO = new String[] { "Y", "N" };
	public static String[] PAGE_TYPE = new String[] { "textbox", "combobox","datebox","datetimebox" };
	public static int getIndex(String value, String[] arr) {
		int index = -1;
		for (int i = 0; i < arr.length; i++) {
			if (value.equals(arr[i])) {
				return i;
			}
		}
		return index;
	}
}
